*,
*::before,
*::after {
    box-sizing: border-box;
}

.tl-timeline {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 0;
}

.tl-timeline::after { /*时间线*/
    content: '';
    position: absolute;
    width: 2px;
    background: #3fa2ff;
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.tl-container {
    padding: 15px 30px;
    position: relative;
    background: inherit;
    width: 100%;
}

.tl-container.left {
    left: 0;
}

.tl-container.right { /*必须和时间线的偏移量相同*/
    left: 20px;
}

.tl-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 48px;
    right: -8px;
    background: #3fa2ff;
    border-radius: 16px;
    z-index: 1;
}

.tl-container.right::after {
    left: -8px;
}

.tl-container::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 46px;
  right: 10px;
  z-index: 1;
  border: 10px solid;
  border-color: transparent transparent transparent #3fa2ff;
}

.tl-container.right::before {
  left: 10px;
  border-color: transparent #3fa2ff transparent transparent;
}

.tl-container .date {
    content: '';
    position: absolute;
    display: inline-block;
    top: 48px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #3fa2ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.tl-container.left .date {
    right: -75px;
}

.tl-container.right .date {
    left: -75px;
}

.tl-container .content {
    padding: 5px;
    background: #ffffff;
    position: relative;
    border: 1px solid #eeeeee;
    border-right: 5px solid #3fa2ff;
    border-left: 5px solid #eeeeee;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 0 60px rgba(0, 0, 0, .08);
}

.tl-container.right .content {
    border-right: 5px solid #eeeeee;
    border-left: 5px solid #3fa2ff;
    border-radius: 0 15px 15px 0;
}

.tl-container .content h2 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: normal;
    color: #666666;
}

@media (max-width: 767.98px) {
    .tl-timeline::after {
        left: 90px;
    }

    .tl-container {
        width: 100%;
        padding-left: 120px;
        padding-right: 30px;
    }
    
    .tl-container.right {
        left: 0%;
    }

    .tl-container.left::after, 
    .tl-container.right::after {
        left: 82px;
    }
    
    .tl-container.left::before,
    .tl-container.right::before {
        left: 100px;
        border-color: transparent #3fa2ff transparent transparent;
    }
    
    .tl-container.left .date,
    .tl-container.right .date {
        right: auto;
        left: 15px;
    }
    
    .tl-container.left .content,
    .tl-container.right .content {
        border-right: 5px solid #eeeeee;
        border-left: 5px solid #3fa2ff;
        border-radius: 0 15px 15px 0;
    }
}
